<?php $this->import('Header') ?>
<div class="container">
	<div class="row register">
		<div class="col-xs-4 col-xs-offset-2">
			<form id="js-login-form">
				<h4>用户登录</h4>
				<div class="form-group">
					<div class="input-group">
						<div class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></div>
						<input type="text" name="email" class="form-control" placeholder="邮件/手机号">
					</div>
				</div>
				<div class="form-group">
					<div class="input-group">
						<div class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></div>
						<input type="password" name="password" class="form-control" placeholder="密码">
					</div>
				</div>
				<div class="form-group">
					<span class="text-danger" id="error"></span>
				</div>
				<div class="form-group">
					<label><input type="checkbox" checked> 记住我</label>
					<label><a href="">忘记密码？</a></label>
					<button type="submit" class="btn btn-default">登录</button>
				</div>
			</form>
			<hr />
			<div>
				<span>第三方登录：</span>
					<span>
						<a href="/OAuth/QQ?fromurl=<?php echo urlencode($fromUrl) ?>"><img src="/Resource/images/qq_l.png" height="30" width="30"></a>
						<a href="/OAuth/Weibo?fromurl=<?php echo urlencode('/') ?>"><img src="/Resource/images/weibo_l.png" height="30" width="30"></a>
					</span>
			</div>
			<div>
				<span>没有账号？</span>
				<a href="/register.html?fromurl=<?php echo urlencode($fromUrl) ?>">点击注册</a>
			</div>
		</div>
	</div>
</div>
<?php $this->import('Footer') ?>
<script>
	seajs.init({
		fromUrl: '<?php echo $fromUrl ?>'
	});

</script>